package com.lagou.sqlSession;

import com.lagou.pojo.Configuratioin;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @Description:
 * @Author: yw
 * @Date: 2021/7/25 10:58
 **/
public interface Executor {

    <E> List<E> query(Configuratioin configuratioin, MappedStatement mappedStatement, Object... params) throws SQLException, ClassNotFoundException, NoSuchFieldException, Exception;


    int saveOrUpdate(Configuratioin configuratioin, MappedStatement mappedStatement, Object... params) throws Exception;
}
